//package com.ruoyi.system.controller;
//
//import com.ruoyi.common.core.utils.poi.ExcelUtil;
//import com.ruoyi.common.core.web.controller.BaseController;
//import com.ruoyi.common.core.web.domain.AjaxResult;
//import com.ruoyi.common.core.web.page.TableDataInfo;
//import com.ruoyi.common.log.annotation.Log;
//import com.ruoyi.common.log.enums.BusinessType;
//import com.ruoyi.common.security.annotation.RequiresPermissions;
//import com.ruoyi.system.domain.OutapiClientApiRel;
//import com.ruoyi.system.service.IOutapiClientApiRelService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.servlet.http.HttpServletResponse;
//import java.util.List;
//
///**
// * 对外接口配置关联接口Controller
// *
// * @author ruoyi
// * @date 2023-10-12
// */
//@RestController
//@RequestMapping("/rel")
//public class OutapiClientApiRelController extends BaseController {
//    @Autowired
//    private IOutapiClientApiRelService tDmGraphIOutapiClientApiRelService;
//
//    /**
//     * 查询对外接口配置关联接口列表
//     */
//    @RequiresPermissions("system:rel:list")
//    @GetMapping("/list")
//    public TableDataInfo list(OutapiClientApiRel outapiClientApiRel) {
//        startPage();
//        List<OutapiClientApiRel> list = tDmGraphIOutapiClientApiRelService.selectOutapiClientApiRelList(outapiClientApiRel);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出对外接口配置关联接口列表
//     */
//    @RequiresPermissions("system:rel:export")
//    @Log(title = "对外接口配置关联接口", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, OutapiClientApiRel outapiClientApiRel) {
//        List<OutapiClientApiRel> list = tDmGraphIOutapiClientApiRelService.selectOutapiClientApiRelList(outapiClientApiRel);
//        ExcelUtil<OutapiClientApiRel> util = new ExcelUtil<OutapiClientApiRel>(OutapiClientApiRel.class);
//        util.exportExcel(response, list, "对外接口配置关联接口数据");
//    }
//
//    /**
//     * 获取对外接口配置关联接口详细信息
//     */
//    @RequiresPermissions("system:rel:query")
//    @GetMapping(value = "/{id}")
//    public AjaxResult getInfo(@PathVariable("id") String id) {
//        return success(tDmGraphIOutapiClientApiRelService.selectOutapiClientApiRelById(id));
//    }
//
//    /**
//     * 新增对外接口配置关联接口
//     */
//    @RequiresPermissions("system:rel:add")
//    @Log(title = "对外接口配置关联接口", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody OutapiClientApiRel outapiClientApiRel) {
//        return toAjax(tDmGraphIOutapiClientApiRelService.insertOutapiClientApiRel(outapiClientApiRel));
//    }
//
//    /**
//     * 修改对外接口配置关联接口
//     */
//    @RequiresPermissions("system:rel:edit")
//    @Log(title = "对外接口配置关联接口", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody OutapiClientApiRel outapiClientApiRel) {
//        return toAjax(tDmGraphIOutapiClientApiRelService.updateOutapiClientApiRel(outapiClientApiRel));
//    }
//
//    /**
//     * 删除对外接口配置关联接口
//     */
//    @RequiresPermissions("system:rel:remove")
//    @Log(title = "对外接口配置关联接口", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{ids}")
//    public AjaxResult remove(@PathVariable String[] ids) {
//        return toAjax(tDmGraphIOutapiClientApiRelService.deleteOutapiClientApiRelByIds(ids));
//    }
//}
